<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box1
        {
            width: 100px;
            height: 100px;
            background-color:blue;
            margin-bottom: 30px;
        }

        .box2
        {
            width: 100px;
            height: 100px;
            background-color: brown;
            margin-top: 50px;
        }

        .container
        {
            overflow: auto;
        }
    </style>
</head>
<body>
    <div class="container">  <div class="box1"></div></div>
    <div class="box2"></div>
</body>
</html>